package sum.book.common.core.model.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
public class TokenDTO implements Serializable {
    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 8148656065155811122L;
    /**
     * jwt token
     */
    @JsonProperty(value = "access_token")
    private String accessToken;

    /**
     * jwt token
     */
    @JsonProperty(value = "refresh_token")
    private String refreshToken;
    /**
     * token类型
     */
    @JsonProperty(value = "token_type")
    private String tokenType;
    /**
     * 有效期
     */
    @JsonProperty(value = "expires_in")
    private Long expiresIn;
    /**
     * 作用域
     */
    @JsonProperty(value = "scope")
    private String scope;
    /**
     * jti
     */
    private String jti;
}
